﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/General.master" AutoEventWireup="true"
    CodeBehind="DashBoard_Resolution.aspx.cs" Inherits="BugNET.DashBoardPages.DashBoard_Resolution"
    Async="true" %>

<%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register TagPrefix="it" TagName="DisplayCustomFields" Src="~/UserControls/DisplayCustomFields.ascx" %>
<%@ Register TagPrefix="it" TagName="PickCategory" Src="~/UserControls/PickCategory.ascx" %>
<%@ Register TagPrefix="it" TagName="PickMilestone" Src="~/UserControls/PickMilestone.ascx" %>
<%@ Register TagPrefix="it" TagName="PickType" Src="~/UserControls/PickType.ascx" %>
<%@ Register TagPrefix="it" TagName="PickStatus" Src="~/UserControls/PickStatus.ascx" %>
<%@ Register TagPrefix="it" TagName="PickPriority" Src="~/UserControls/PickPriority.ascx" %>
<%@ Register TagPrefix="it" TagName="PickSingleUser" Src="~/UserControls/PickSingleUser.ascx" %>
<%@ Register TagPrefix="it" TagName="PickResolution" Src="~/UserControls/PickResolution.ascx" %>
<asp:Content ContentPlaceHolderID="Fields" runat="server">
    <table width="100%">
        <tr>
            <td align="center">
                <div style="width: 100%;" class="issue-form">
                    <table style="width: 80%; background: #F1F2EC none repeat scroll 0 0; border: 1px solid #D7D7D7;
                        margin-bottom: 20px; padding: 6px;">
                        <tr>
                            <td align="left">
                                <div class="grid_1">
                                    Milestone
                                </div>
                                <div class="grid_1">
                                    <it:PickMilestone ID="DropMilestone" DisplayDefault="True" ClientIDMode="Static"
                                        runat="Server" />
                                </div>
                            </td>
                            <td align="left">
                                <div class="grid_1">
                                    Category
                                </div>
                                <div class="grid_1">
                                    <it:PickCategory ID="DropCategory" DisplayDefault="true" ClientIDMode="Static" Required="false"
                                        runat="Server" />
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <div class="grid_1">
                                    Priority
                                </div>
                                <div class="grid_1">
                                    <it:PickPriority ID="DropPriority" DisplayDefault="True" ClientIDMode="Static" runat="Server" />
                                </div>
                            </td>
                            <td align="left">
                                <div class="grid_1">
                                    Type
                                </div>
                                <div class="grid_1">
                                    <it:PickType ID="DropIssueType" DisplayDefault="True" ClientIDMode="Static" runat="Server" />
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <div class="grid_1">
                                    Start Date
                                </div>
                                <div class="grid_1">
                                    <table cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td>
                                                <asp:TextBox runat="server" ID="txtStartDate" ClientIDMode="Static" Width="165" ValidationGroup="grpDate"></asp:TextBox>
                                            </td>
                                            <td>
                                                <asp:Image ID="imgCalendar" runat="Server" CssClass="icon" ImageUrl="~/images/calendar.gif" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="req" colspan="2">
                                                <asp:CompareValidator ID="CompareValidator1" runat="server" Display="Dynamic" ControlToValidate="txtStartDate"
                                                    Operator="DataTypeCheck" Type="Date" ErrorMessage="<%$ Resources:InvalidDateErrorMessage %>" />
                                            </td>
                                        </tr>
                                    </table>
                                    <ajaxToolkit:CalendarExtender runat="server" TargetControlID="txtStartDate" ID="calStartDate"
                                        PopupButtonID="imgCalendar">
                                    </ajaxToolkit:CalendarExtender>
                                </div>
                            </td>
                            <td align="left">
                                <div class="grid_1">
                                    End Date
                                </div>
                                <div class="grid_1">
                                    <table cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td>
                                                <asp:TextBox runat="server" ID="txtEndDate" ClientIDMode="Static" Width="165" ValidationGroup="grpDate"></asp:TextBox>
                                            </td>
                                            <td>
                                                <asp:Image ID="imgCalendar1" runat="Server" CssClass="icon" ImageUrl="~/images/calendar.gif" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="req" colspan="2">
                                                <asp:CompareValidator ID="CompareValidator2" runat="server" Display="Dynamic" ControlToValidate="txtEndDate"
                                                    Operator="DataTypeCheck" Type="Date" ErrorMessage="<%$ Resources:InvalidDateErrorMessage %>" />
                                            </td>
                                        </tr>
                                    </table>
                                    <ajaxToolkit:CalendarExtender runat="server" TargetControlID="txtEndDate" ID="CalendarExtender1"
                                        PopupButtonID="imgCalendar1">
                                    </ajaxToolkit:CalendarExtender>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="right">
                                <asp:Button ID="BtnGenerateGraph" ToolTip="Generate Graph" runat="server" Text="Generate" />
                                <asp:Button ID="BtnReset" ToolTip="Reset All Parameters" runat="server" OnClick="BtnReset_Click"
                                    Text="Reset" />
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr>
            <td align="center">
                <table width="80%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            <asp:Chart ID="Chart" runat="server" Width="800px" Height="500px" Palette="BrightPastel"
                                BackColor="#D3DFF0" ImageType="Png" BorderlineDashStyle="Solid" BackGradientStyle="TopBottom"
                                BorderWidth="2" BorderColor="26, 59, 105">
                                <Titles>
                                    <asp:Title ShadowColor="32, 0, 0, 0" Font="Trebuchet MS, 14.25pt, style=Bold" ShadowOffset="3"
                                        Text="Issue Resolution Dashboard" ForeColor="26, 59, 105">
                                    </asp:Title>
                                </Titles>
                                <Legends>
                                    <asp:Legend Enabled="true" IsTextAutoFit="true" Name="Default" BackColor="Transparent"
                                        Font="Trebuchet MS, 8.25pt, style=Bold">
                                    </asp:Legend>
                                </Legends>
                                <BorderSkin SkinStyle="Emboss"></BorderSkin>
                                <Series>
                                    <asp:Series Name="Issue Resolution count">
                                    </asp:Series>
                                </Series>
                                <ChartAreas>
                                    <asp:ChartArea Name="ChartArea">
                                    </asp:ChartArea>
                                </ChartAreas>
                            </asp:Chart>
                        </td>
                        <td valign="top" style="width: 30%;" align="right">
                            <table class="controls" cellpadding="5" style="width: 95%; background: #F1F2EC none repeat scroll 0 0;
                                border: 1px solid #D7D7D7;">
                                <tr>
                                    <td class="label">
                                        Show 3D View
                                    </td>
                                    <td>
                                        <asp:CheckBox ID="chkIs3dView" runat="server" AutoPostBack="True" Text=""></asp:CheckBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label">
                                        Show Grid lines
                                    </td>
                                    <td>
                                        <asp:CheckBox ID="chkIsGridlineVisible" runat="server" AutoPostBack="True" Text="">
                                        </asp:CheckBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label">
                                        Column:
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="Column" runat="server" Checked="True" AutoPostBack="True" Text=""
                                            GroupName="ChartType"></asp:RadioButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label">
                                        Bar:
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="Bar" runat="server" AutoPostBack="True" Text="" GroupName="ChartType">
                                        </asp:RadioButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label">
                                        Drawing Style:
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="DrawingStyle" runat="server" Width="110px" AutoPostBack="True"
                                            CssClass="spaceright">
                                            <asp:ListItem Value="Default">Default</asp:ListItem>
                                            <asp:ListItem Value="Emboss">Emboss</asp:ListItem>
                                            <asp:ListItem Value="Cylinder">Cylinder</asp:ListItem>
                                            <asp:ListItem Value="Wedge">Wedge</asp:ListItem>
                                            <asp:ListItem Value="LightToDark">LightToDark</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label">
                                        Point Width:
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="BarWidthList" runat="server" AutoPostBack="True" CssClass="spaceright">
                                            <asp:ListItem Value="1.0">1.0</asp:ListItem>
                                            <asp:ListItem Value="0.8" Selected="True">0.8</asp:ListItem>
                                            <asp:ListItem Value="0.6">0.6</asp:ListItem>
                                            <asp:ListItem Value="0.4">0.4</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label">
                                        Right Angle Axis:
                                    </td>
                                    <td>
                                        <asp:CheckBox ID="RightAngledAxis" runat="server" Checked="true" AutoPostBack="True"
                                            Text=""></asp:CheckBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label">
                                        Rotate X:
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="RotateX" runat="server" AutoPostBack="True" CssClass="spaceright">
                                            <asp:ListItem Value="-40">-40</asp:ListItem>
                                            <asp:ListItem Value="-30">-30</asp:ListItem>
                                            <asp:ListItem Value="-20">-20</asp:ListItem>
                                            <asp:ListItem Value="-10">-10</asp:ListItem>
                                            <asp:ListItem Value="0">0</asp:ListItem>
                                            <asp:ListItem Value="10">10</asp:ListItem>
                                            <asp:ListItem Value="20">20</asp:ListItem>
                                            <asp:ListItem Value="30" Selected="True">30</asp:ListItem>
                                            <asp:ListItem Value="40">40</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label">
                                        Rotate Y:
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="RotateY" runat="server" AutoPostBack="True" CssClass="spaceright">
                                            <asp:ListItem Value="-40">-40</asp:ListItem>
                                            <asp:ListItem Value="-30">-30</asp:ListItem>
                                            <asp:ListItem Value="-20">-20</asp:ListItem>
                                            <asp:ListItem Value="-10">-10</asp:ListItem>
                                            <asp:ListItem Value="0">0</asp:ListItem>
                                            <asp:ListItem Value="10">10</asp:ListItem>
                                            <asp:ListItem Value="20">20</asp:ListItem>
                                            <asp:ListItem Value="30" Selected="True">30</asp:ListItem>
                                            <asp:ListItem Value="40">40</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
